﻿@using Pyramid.Models
@model  IEnumerable<PayeeRecord>
@{
	var bag = (PagerModel)ViewBag.Bag;
}

@using (Html.BeginForm("PaymentList", "Customer", FormMethod.Post, new {id = "pagerForm"}))
{
	<input type="hidden" name="pageNum" value="1" />
	<input type="hidden" name="numPerPage" value="${model.numPerPage}" />
}
<div class="pageContent">
	<table class="table" width="100%" layouth="50">
		<thead>
			<tr>
				<th>充值金额</th>
				<th>充值说明</th>
				<th>@Html.DisplayNameFor(m=>m.FinanceAccount.AccountType)</th>
				<th>@Html.DisplayNameFor(m=>m.FinanceAccount.Account)</th>
				<th>@Html.DisplayNameFor(m=>m.ApplyTime)</th>
				<th>@Html.DisplayNameFor(m=>m.Status)</th>
				<th>@Html.DisplayNameFor(m=>m.Verify.VerifyTime)</th>
				<th>@Html.DisplayNameFor(m=>m.Verify.VerifyUserId)</th>
			</tr>
		</thead>
		<tbody>
			@foreach (var s in Model)
			{
				<tr>
					<td>@s.Amount.ToString("C")</td>
					<td>@s.Instruction</td>
					<td>@s.FinanceAccount.AccountType</td>
					<td>@s.FinanceAccount.Account</td>
					<td>@s.ApplyTime.ToString("yyyy-MM-dd")</td>
					<td>@s.StatusString</td>
					<td>@(s.Verify == null ? "" : s.Verify.VerifyTime.ToString("yyyy-MM-dd"))</td>
					<td>@(s.Verify == null ? "" : s.Verify.VerifyUserId)</td>
				</tr>
			}
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="50">50</option>
				<option value="100">100</option>
				<option value="200">200</option>
			</select>
			<span>条，共 @bag.TotalCount 条</span>
		</div>
		<div class="pagination" targettype="navTab" totalcount="@bag.TotalCount" numperpage="@bag.PageSize" pagenumshown="10" currentpage="@bag.CurrentPageIndex"></div>
	</div>
</div>
